var $ = jQuery.noConflict();
$(document).ready(
    function () {
        $.ajax({
            type: "post",
            url: "../Home/GetGrabOrderCount",
            data: {},
            contentType: 'application/json',
            success: function (data) {
                if (data > 0) {
                    $(".js_grabOrderCount").text(data);
                    $(".js_grabOrderCount").show();
                    $(".js_grabOrderCount").attr("title", "待抢单数量：" + data);
                } else {
                    $(".js_grabOrderCount").hide();
                }
            },
            error: function () {
                alert('数据请求异常！');
            }
        });
    });